package com.ssy.lingxi.platform.template.service.repository;

import com.ssy.lingxi.platform.template.service.entity.adorn.PageTemplateGoods;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface PageTemplateGoodsRepository extends JpaRepository<PageTemplateGoods, Long> {

    PageTemplateGoods findByTemplateIdAndCategoryId(Long templateId, Long categoryId);

    PageTemplateGoods findByTemplateIdAndCategoryIdAndMemberId(Long templateId, Long categoryId, Long memberId);

    PageTemplateGoods findByTemplateIdAndCategoryIdAndMemberIdAndRoleId(Long templateId, Long categoryId, Long memberId, Long roleId);
}
